﻿using System;

namespace PrototypePattern
{
    internal class Color : ColorPrototype
    {
        private int _red;
        private int _green;
        private int _blue;
        public Color(int red, int greed, int blue)
        {
            _red = red;
            _green = greed;
            _blue = blue;
        }

        public override ColorPrototype Clone()
        {
            Console.WriteLine("Cloneing color RGB:{0,3},{1,3},{2,3}", _red, _green, _blue);

            return this.MemberwiseClone() as ColorPrototype;
        }
    }
}
